/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/<a href="https://www.kaaction.com">KAA</a>"><a href="https://www.kaaction.com">KAA</a></a> All rights reserved.
 */
package com.kaaction.modules.ka.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 货品基础信息Entity
 * @author huanghaiming
 * @version 2017-04-24
 */
public class BasicGoods extends DataEntity<BasicGoods> {
	
	private static final long serialVersionUID = 1L;
	private String categoryId;		// 类别
	private String categoryName;		// 类别名称
	private String productCode;		// 商品编码
	private String supplierId;		// 供应商
	private String supplierName;		// 供应商名称
	private String sizeId;		// 尺寸
	private String sizeName;		// 尺寸名称
	private String colorId;		// 颜色
	private String colorName;		// 颜色名称
	private double instockPrice;		// 入库价格
	private double salePrice;		// 销售价格
	private String canalId; // 渠道
	
	private String[] ids;
	private String[] sids;//尺码
	private String[] cids;//颜色
	private String[] caids;//渠道
	
	//以下字段供财务报表使用
	private int currentNum;//0点时计算的总数
	
	public BasicGoods() {
		super();
	}

	public BasicGoods(String id){
		super(id);
	}

	@Length(min=0, max=4000, message="品类长度必须介于 0 和4000 之间")
	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	@Length(min=1, max=32, message="商品编码长度必须介于 1 和 32 之间")
	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	
	@Length(min=1, max=64, message="供应商长度必须介于 1 和64 之间")
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	
	public String getSizeId() {
		return sizeId;
	}

	public void setSizeId(String sizeId) {
		this.sizeId = sizeId;
	}

	public String getSizeName() {
		return sizeName;
	}

	public void setSizeName(String sizeName) {
		this.sizeName = sizeName;
	}

	public String getColorId() {
		return colorId;
	}

	public void setColorId(String colorId) {
		this.colorId = colorId;
	}

	public String getColorName() {
		return colorName;
	}

	public void setColorName(String colorName) {
		this.colorName = colorName;
	}

	public double getInstockPrice() {
		return instockPrice;
	}

	public void setInstockPrice(double instockPrice) {
		this.instockPrice = instockPrice;
	}

	public double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(double salePrice) {
		this.salePrice = salePrice;
	}

	public String getCanalId() {
		return canalId;
	}

	public void setCanalId(String canalId) {
		this.canalId = canalId;
	}

	public String[] getIds() {
		return ids;
	}

	public void setIds(String[] ids) {
		this.ids = ids;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String[] getSids() {
		return sids;
	}

	public void setSids(String[] sids) {
		this.sids = sids;
	}

	public String[] getCids() {
		return cids;
	}

	public void setCids(String[] cids) {
		this.cids = cids;
	}

	public String[] getCaids() {
		return caids;
	}

	public void setCaids(String[] caids) {
		this.caids = caids;
	}

	public int getCurrentNum() {
		return currentNum;
	}

	public void setCurrentNum(int currentNum) {
		this.currentNum = currentNum;
	}
	
	
}